<?php
/**
 * Created by JetBrains PhpStorm.
 * User: sergey.uchvatov
 * Date: 03.12.12
 * Time: 12:33
 * To change this template use File | Settings | File Templates.
 */
?>

<?php if(isset($items) && sizeof($items) > 0): ?>

<div id="mac-slider">
  <div id='mac-menu'>
    <?php foreach($items as $item) : ?>

    <?php $image = field_view_field('lonex_category', $item, 'field_category_image', array('label' => 'hidden')); ?>
    <?php print l(render($image), 'catalog/' . $item->cid,
      array('html' => true,
        'attributes' => array(
          'data-placement' => 'top',
          'rel' => 'tooltip',
          'data-html' => 'true',
          'data-title' => 'asdasdasd',
          'class' => array()
        )));
    ?>

    <?php endforeach; ?>
  </div>
</div>

<?php endif; ?>
